import request from '@/utils/request'
/*
* 获取运费模板列表接口
*  */
export const fetchFreightListAPI = () => {
  return request({
    url: '/manager/carriages',
    method: 'GET'
  })
}
/*
* 删除运费模板接口
*  */
export const deleteFreightAPI = (id) => {
  return request({
    url: `/manager/carriages/${id}`,
    method: 'DELETE'
  })
}

/*
*新增或者编辑模板的接口
*  */
export const addOrUpdateFreightAPI = (data) => {
    return request({
      url: '/manager/carriages',
      method: 'POST',
      data
    })
}
